package com.example.time_manage_web.service.impl;

import com.example.time_manage_web.mapper.UserMapper;
import com.example.time_manage_web.pojo.Todolist;
import com.example.time_manage_web.pojo.User;
import com.example.time_manage_web.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: time_manage_web
 * @BelongsPackage: com.example.time_manage_web.service.impl
 * @Author: fox
 * @CreateTime: 2023-04-09  16:45
 * @Description: TODO
 * @Version: 1.0
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public int login(User user) {
        int a = this.userMapper.login(user);
        return a;
    }

    @Override
    public int up(User user) {
        int a = this.userMapper.up(user);
        return a;
    }
    @Override
    public int add(User user) {
        int a = this.userMapper.add(user);
        return a;
    }
    @Override
    public List<User> quhead(User user){
        return this.userMapper.quhead(user);
    }

    @Override
    public String nick(User user) {
        return this.userMapper.nick(user);
    }

    @Override
    public String username(User user) {
        return this.userMapper.username(user);
    }
    @Override
    public String password(User user) {
        return this.userMapper.password(user);
    }

    @Override
    public List<User> query() {
        return  this.userMapper.query();
    }
}
